<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
<<<<<<< HEAD
    <link rel="stylesheet" href="css/demo.css">
    <title>Document</title>
=======
    <script src="js/jquery-1.11.3.min.js"></script>
    <title>jquery测试</title>
    <style type="text/css">
        * {
            margin: 0;
            padding: 0;
        }

        #btn1,
        #btn2,
        #btn3 {
            width: 100px;
            height: 20px;
            background-color: #f0f;
            margin: 10px;
        }
    </style>
>>>>>>> 79683163e2f138953a2f86adc7d663d86698ede2
</head>

<body>
    <div id="btn1"></div>
    <div id="btn2"></div>
    <div id="btn3"></div>

    <input type="checkbox" name="checkThis" id="checkThis" />
    <script>
        (function () {
            $('#btn1').click(function () {
                console.log(1);
            })

            $('#btn2').on('click', function () {
                console.log(2);
            })

            $('#btn3').bind('click',function(){
                console.log(3);
            })

            $('#checkThis').on('click',function(){
                console.log(this.checked);
                var a = $(this).prop('checked');
                console.log(a);
            });
        })()
    </script>
</body>

</html>